package org.xfy.ymcc.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class UserRegisterDto {
    @NotEmpty(message = "手机号不能为空")
    private String mobile;
    @NotEmpty(message = "密码不能为空")
    private String password;
    @NotEmpty(message = "图片验证码不能为空")
    private String imageCode;
    @NotEmpty(message = "手机验证码不能为空")
    private String smsCode;
    @Range(min = 0,max = 1,message = "非法操作")
    private Integer regChannel;
}
